-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SDL 0179 - Pixel density and Scale #1401
Implement SDL 0179 - Pixel density and Scale #1401
Conversation
…amingCapability'.
…nges in the view controller's size to the accepted video resolution divided by the scale.
… Scale' proposal.
…el_density_and_scale
…el_density_and_scale
…deo streaming source match size.
…el_density_and_scale
…from notifications on its own)
smartdevicelink#1360 (comment) smartdevicelink#1360 (comment) update CarWindow and TouchManager to use scale from StreamingVideoLifecycleManager in init smartdevicelink#1360 (comment)
…from notifications on its own)
smartdevicelink#1360 (comment) smartdevicelink#1360 (comment) update private property of tested class in test to meet its declaration
DONE |
fix a typo in string (not an error) Co-Authored-By: NicoleYarroch <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some requests for changes
Travis, all tests passed but 2 in the following files: As far as I can see it the 2 are not connected with this subject. |
@yLeonid Can you let me know when this is ready to review? The following issues still need to be addressed.
|
…ableItemLocator scale on videoStreamingCapability change. smartdevicelink#1401 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments requesting changes
…dow and SDLFocusableItemLocator, make it public. smartdevicelink#1401 (comment)
…ct up instead of scaling the point down smartdevicelink#1401 (comment)
…ct up instead of scaling the point down smartdevicelink#1401 (comment)
c9bad4d
to
39dac48
Compare
Travis tests are not stable, tests sometimes fail |
Due to time constraints, we are closing the PR in favor of PR #1420, which was based off of this PR. Thanks for your contributions to this PR. |
Fixes #1007
Based on the following PM:
#1360 (reference)
Contributors:
@lnafarrateluxoft
#lnafarrateluxoft
@NicoleYarroch
#NicoleYarroch
This PR is ready for review.
Risk
This PR makes minor API changes.
Testing Plan
Unit tests added for:
Functional testing can be done by editing the preferred resolution,
and scale in HMI and testing that the captured view has the proper size and touches are reported
correctly and with the correct coordinates while clicking on the HMI interface.
Also the Automatic Haptic Rect sent to HMI should have the propper size according to the scale value set.
Summary
The main change is related to changing the size of the view captured.
This is done by adding a new scale parameter in the video
streaming capability and by dividing the preferred resolution from the
HMI and the scale.
Also touch coordinates need some changes to match in the HMI with the new resolution, I had to divide the coordinates with the new scale value.
Fixed Travis script to run tests on #Travis CLI
CLA